import time

def bubble(mas):
    flag = True
    while flag == True:
        flag = False
        for j in range(len(mas)):
            for i in range(len(mas) - 1 - j)
                if int(mas[i]) > int(mas[i + 1]):
                    mas[i],mas[i + 1] = mas[i + 1],mas[i]
                    flag = True
    return mas
flag = True
    while flag == True:
        flag = False
        for j in range(len(mas)):
            for i in range(len(mas) - 1 - j)
                if int(mas[i]) > int(mas[i + 1]):
                    mas[i],mas[i + 1] = mas[i + 1],mas[i]
                    flag = True
    return mas

flag = True
    while flag == True:
        flag = False
        for j in range(len(mas)):
            for i in range(len(mas) - 1 - j)
                if int(mas[i]) > int(mas[i + 1]):
                    mas[i],mas[i + 1] = mas[i + 1],mas[i]
                    flag = True
    return mas

flag = True
    while flag == True:
        flag = False
        for j in range(len(mas)):
            for i in range(len(mas) - 1 - j)
                if int(mas[i]) > int(mas[i + 1]):
                    mas[i],mas[i + 1] = mas[i + 1],mas[i]
                    flag = True
    return mas

flag = True
    while flag == True:
        flag = False
        for j in range(len(mas)):
            for i in range(len(mas) - 1 - j)
                if int(mas[i]) > int(mas[i + 1]):
                    mas[i],mas[i + 1] = mas[i + 1],mas[i]
                    flag = True
    return mas